package edu.xust.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import edu.xust.pojo.AdBean;
import org.springframework.web.multipart.MultipartFile;

/**
 * 数据传输对象
 */
@JsonInclude(JsonInclude.Include.NON_NULL)//将非空的内容转为Json
public class AdDto extends AdBean {
    private String img;//在前端访问的图片地址
    private MultipartFile imageFile;//图片文件

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public MultipartFile getImageFile() {
        return imageFile;
    }

    public void setImageFile(MultipartFile imageFile) {
        this.imageFile = imageFile;
    }
}
